package com.itheima.mapper;

import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    User findByUsername(@Param("username")String username);

    User SelectByUserName(@Param("username")String username);

    List<User> findPage(String queryString);

    void add(User user);

    void setUserAndRoleds(@Param("roleIds")Integer[] roleIds,@Param("id") Integer id);

    void deleteAssociation(@Param("id")Integer id);


    void edit(User user);

    void deleteById(@Param("id")Integer id);
}
